package com.matt.docpro.model;

import cn.hutool.core.date.DateUtil;
import lombok.Data;

import java.util.Date;

/**
 * Blog
 * Created by on 2024/02/28.
 */
@Data
public class Blog {
    String id;
    String title;
    String img;
    String content;
    String detail;
    String creatorId;
    String creatorNm;
    Date createTime;
    public String getFormatCreateTime() {
        if (createTime == null) {
            return "";
        }
        return DateUtil.format(createTime, "yyyy/MM/dd HH:mm");
    }
}
